-- GENERATED SPELL FOR [Wanton Hostess] --


function spell0_16459(pUnit, Event) --@Alluring Aura,Self--
pUnit:FullCastSpellOnTarget(29485,pUnit)
pUnit:RegisterEvent('Sorts_16459', 618, 1)
end

function spell1_16459(pUnit, Event) --@Banshee Shriek,Self--
pUnit:FullCastSpellOnTarget(29505,pUnit)
pUnit:RegisterEvent('Sorts_16459', 5500, 1)
end

function spell2_16459(pUnit, Event) --@Banshee Wail,n/a--
pUnit:FullCastSpellOnTarget(29477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16459', 1500, 1)
end

function spell3_16459(pUnit, Event) --@Bewitching Aura,Self--
pUnit:FullCastSpellOnTarget(29486,pUnit)
pUnit:RegisterEvent('Sorts_16459', 575, 1)
end

function Sorts_16459(pUnit, Event)
local choix_sorts_16459 = math.random(0, 3)
if choix_sorts_16459 == 0 then
pUnit:RegisterEvent('spell0_16459', 1, 1)
end
if choix_sorts_16459 == 1 then
pUnit:RegisterEvent('spell1_16459', 1, 1)
end
if choix_sorts_16459 == 2 then
pUnit:RegisterEvent('spell2_16459', 1, 1)
end
if choix_sorts_16459 == 3 then
pUnit:RegisterEvent('spell3_16459', 1, 1)
end
end

function mob16459_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16459', math.random(1500, 3000), 1)
end

function mob16459_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16459_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16459_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16459, 1, 'mob16459_Action')
RegisterUnitEvent(16459, 2, 'mob16459_Leave')
RegisterUnitEvent(16459, 3, 'mob16459_Kill')
RegisterUnitEvent(16459, 4, 'mob16459_Die')
